<template>
    <div class="nav">
        <dl v-for="item in msg">
            <dt>
                <img :src="item.imgUrl" alt="">
            </dt>
            <dd>{{item.text}}</dd>
        </dl>
    </div>
</template>
<script>
export default {
    props:["msg"],
}
</script>
<style scoped lang="scss">
@function pxTwo($font){
    @return $font*2.6666666666
}
.nav{
    width: 100%;
    height: pxTwo(1.5rem);
    margin-top: pxTwo(.1rem);
    display: flex;
    flex-wrap: wrap;
    dl{
        width: 20%;
        font-size: 14px;
        height: 50%;
        display: flex;
        flex-direction: column;
        dt{
            width: 60%;
            height: 60%;
            margin: 0 auto;
            img{
                width: 100%;
                height: 100%
            }
        }
        dd{
            width: 100%;
            height: 30%;
            justify-content: center;
            display: flex;
            align-items: center;
        }
    }
}
 
</style>

